<?php

function formataData($data)
{
    $d = explode('/',$data);
    return implode('-',array($d[2],$d[1],$d[0]));
}

?>
